package au.com.mason.propertyTracker.domain;

public enum Status {
	SOLD,
	REMOVED,
	UNDER_CONTRACT;
	
	public static Status fromString(String keyValue) {
        for (Status status : values()) {
            if (status.toString().equals(keyValue))
                return status;
        }
        
        throw new IllegalArgumentException("There's no WeekDay value with key " + keyValue);
    }
}
